package com.example.storage.service;

import com.baomidou.mybatisplus.service.IService;
import com.example.common.dto.CommodityDTO;
import com.example.common.response.ObjectResponse;
import com.example.storage.entity.TStorage;
import org.springframework.stereotype.Service;

/**
 * 仓库服务
 */
public interface ITStorageService extends IService<TStorage> {

    /**
     * 扣减库存
     */
    ObjectResponse<Object> decreaseStorage(CommodityDTO commodityDTO);
}
